package main

import (
	"net"
	"fmt"
	"os"
)

func main() {
	conn, err := net.Dial("tcp", "127.0.0.1:5001")
	if err != nil {
		fmt.Printf("%v Error: %s", os.Stderr,err.Error())
		return
	}
	var buf [4096]byte

	//	for {
	n, err := conn.Read(buf[0:])
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error: %s", err.Error())
		return
	}
	fmt.Println(string(buf[0:n]))
	fmt.Println((buf[0:n]))
}
